.\" $Header$ -*-nroff-*-
.\" Purpose: ROFF man page for ncpdq 
.\" Usage:
.\" nroff -man ~/nco/man/ncpdq.1 | less
.TH NCPDQ 1
.SH NAME
ncpdq \- netCDF Permute Dimensions Quickly, Pack Data Quietly...
.SH SYNTAX
ncpdq [\-3] [\-4] [\-5] [\-6] [\-7] [\-A] [\-a 
.IR dim [,...]]
[\--bfr
.IR sz_byt ] [\-C] [\-c]
[\-\-cmp
.IR cmp_sng ]
[\--cnk_byt
.IR sz_byt ] [\--cnk_csh
.IR sz_byt ] [\--cnk_dmn 
.IR nm,sz_lmn ]
[\--cnk_map 
.IR map ]
[\--cnk_min
.IR sz_byt ]
[\--cnk_plc 
.IR plc ]
[\--cnk_scl 
.IR sz_lmn ] [\-D 
.IR dbg_lvl ]
[\-d 
.IR dim ,[
.IR min ][,[
.IR max ]]]
[-F] [--fl_fmt=fmt] [\-G
.IR gpe_dsc ]
[\-g  
.IR grp [,...]]
[\--gaa
.IR att_name=
.IR att_val ]]
[\-\-gad 
.IR att1 [,...]]
[\-H] [\-h] [\--hdf] [\--hdr_pad
.IR sz_byt ] [\--hpss_try]
[\-L 
.IR dfl_lvl ] 
[\-l 
.IR path ]
[\-M 
.IR pck_map ]
[\--mrd] [\--msa] [\--no_cll_msr] [\--no_frm_trm] [\--no_tmp_fl] [\-O] [\-o 
.IR output-file ]
[\-P 
.IR pck_plc ]
[\-p 
.IR path ]
[\-\-qnt
.IR var1 [,
.IR var2 [,...]]=
.IR prc ]]
[\-\-qnt_alg
.IR alg_nm]
[\-R] [\-r] [\--ram_all] [\-t 
.IR thr_nbr ] 
[\-U] [\--uio] [\--unn] [\-v 
.IR var [,...]]
[\-X 
.IR box ] 
[\-x] 
.IR input-file
[
.IR output-file
]
.SH DESCRIPTION
.PP
.B ncpdq
packs or re-shapes variables in 
.I input-file
and stores them in 
.I output-file.
Which variables to pack/unpack are determined by the packing policy 
encoded in the 
.IR pck_plc 
argument to the 
.BR \-P
switch.
Valid 
.IR pck_plc 
options are
.IR all_new, 
.IR all_xst, 
.IR xst_new, 
and
.IR upk.
The numeric type of variable to pack or re-pack a variable to is
determined by the packing map encoded in the 
.IR pck_map
argument to the 
.BR \-M
switch.
Valid 
.IR pck_map
options are
.IR flt_byt,
.IR flt_sht,
.IR hgh_byt,
.IR hgh_sht,
and
.IR nxt_lsr.

.B ncpdq 
re-shapes variables in 
.I input-file
by re-ordering and/or reversing dimensions specified in the dimension list.
The dimension list is a comma separated list of dimension names,
optionally prefixed by negative signs, that follow the 
.BR \-a
switch. 
To re-order variables by a subset of their dimensions, specify
these dimensions in a comma-separated list following
.BR \-a ,
e.g.,
.BR "\-a lon,lat".
To reverse a dimension, prefix its name with a negative sign in the
dimension list, e.g., 
.BR "\-a \-lat". 
Re\-ordering and reversal may be performed simultaneously, e.g.,
.BR "\-a lon,\-lat,time,\-lev". 

Users may specify any permutation of dimensions, including
permutations which change the record dimension identity.
The record dimension is re-ordered like any other dimension.
The record dimension is always the most slowly varying dimension in a
record variable.
The specified re-ordering will fail if it requires creating more than
one record dimension amongst all the output variables.

.\" NB: Append man_end.txt here
.\" $Header$ -*-nroff-*-
.\" Purpose: Trailer file for common ending to NCO man pages
.\" Usage: 
.\" Append this file to end of NCO man pages immediately after marker
.\" that says "Append man_end.txt here"
.SH AUTHOR
.B NCO
manual pages written by Charlie Zender and originally formatted by Brian Mays.

.SH "REPORTING BUGS"
Report bugs to <http://sf.net/bugs/?group_id=3331>.

.SH COPYRIGHT
Copyright \(co 1995-present Charlie Zender
.br
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

.SH "SEE ALSO"
The full documentation for
.B NCO
is maintained as a Texinfo manual called the 
.B NCO Users Guide.
Because 
.B NCO
is mathematical in nature, the documentation includes TeX-intensive
portions not viewable on character-based displays. 
Hence the only complete and authoritative versions of the 
.B NCO Users Guide 
are the PDF (recommended), DVI, and Postscript versions at
<http://nco.sf.net/nco.pdf>, <http://nco.sf.net/nco.dvi>,
and <http://nco.sf.net/nco.ps>, respectively.
HTML and XML versions
are available at <http://nco.sf.net/nco.html> and
<http://nco.sf.net/nco.xml>, respectively.

If the
.B info
and
.B NCO
programs are properly installed at your site, the command
.IP
.B info nco
.PP
should give you access to the complete manual, except for the
TeX-intensive portions.

.BR ncap2 (1), 
.BR ncatted (1), 
.BR ncbo (1), 
.BR ncclimo (1), 
.BR nces (1), 
.BR ncecat (1), 
.BR ncflint (1), 
.BR ncz2psx (1), 
.BR ncks (1), 
.BR nco (1), 
.BR ncpdq (1), 
.BR ncra (1), 
.BR ncrcat (1), 
.BR ncremap (1), 
.BR ncrename (1), 
.BR ncwa (1) 

.SH HOMEPAGE
The 
.B NCO
homepage at <http://nco.sf.net> contains more information.
